package com.reading.core.manager;

import com.reading.core.exception.AloneException;

/**
 * @author guwenqi_1995@163.com
 * @date 2019/7/9 3:52 PM
 **/
public interface ILabelManager {

    /**
     * 创建
     *
     * @param labelName
     */
    void createLabel(String labelName) throws AloneException;

    /**
     * 删除标签
     *
     * @param labelId
     * @throws AloneException
     */
    void deleteLabel(Integer labelId) throws AloneException;

    /**
     * 给图书添加标签
     *
     * @param bookId
     * @param labelId
     * @throws AloneException
     */
    void addBookLabel(Integer bookId, Integer labelId) throws AloneException;

    /**
     * 取消图书的某个标签
     *
     * @param bookId
     * @param labelId
     * @throws AloneException
     */
    void unaddBookLabel(Integer bookId, Integer labelId) throws AloneException;
}
